package com.xiaomei.manager.service;

import java.util.List;

import com.xiaomei.manager.model.AllowanceTicket;
import com.xiaomei.manager.web.page.Page;

public interface IAllowanceTicketService {

	/**
	 * 根据用户编号查询代金券(分页)
	 * @param page
	 * @return
	 */
	List<AllowanceTicket> selectByParamsForPage(Page<AllowanceTicket> page);
	
	/**
	 * 新增代金券
	 * @param ticket
	 * @return
	 */
	boolean createAllowanceTicket(AllowanceTicket ticket);
	
	/**
	 * 根据ID查询代金券
	 * @param id
	 * @return
	 */
	AllowanceTicket findOne(Integer id);
	
	/**
	 * 修改代金券
	 * @param ticket
	 * @return
	 */
	boolean updateAllowanceTicket(AllowanceTicket ticket);
	
	/**
	 * 删除代金券
	 * @param ticket
	 * @return
	 */
	boolean deleteAllowanceTicket(Integer id);
}
